package com.example.fragment;


import com.benchi.ncar.R;
import com.example.tools.Constants;
import com.example.tools.IsNetWork;
import com.lidroid.xutils.ViewUtils;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class UserFragment extends BaseFragment {

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		if (mRootView == null) {
			mRootView = inflater.inflate(R.layout.home, container, false);
			ViewUtils.inject(this, mRootView);
			initViews();
			super.url = Constants.USER_URL;
			super.mRlHeadView.setVisibility(View.GONE);
			super.showWaittingDialog();
		}
		initData(Constants.USER_URL);
		ViewGroup parent = (ViewGroup) mRootView.getParent();
		if (parent != null) {
			parent.removeView(mRootView);
		}
		return mRootView;
	}
}
